package DAO;

/*
Dao层接口
 */

import java.sql.SQLException;
import java.util.ArrayList;

public interface GoodsDao {
    //查询所有商品信息
    public abstract ArrayList<Goods> findAll() throws ClassNotFoundException, SQLException;

    //条件查询，根据goodsNum获取商品信息
    public abstract Goods findByGoodsNum(String goodsNum);

    //新增商品信息
    public abstract int insert(Goods gds);

    //修改商品信息
    public abstract int updata(Goods gds);

    //删除商品信息
    public abstract int delete(String goodsNum);
}
